package net.xdclass.response;

import lombok.Data;

/**
 * @Classname LoginResponse
 * @Description TODO
 * @Date 2022/4/18 17:18
 * @Created by sunhao
 */
@Data
public class LoginResponse {

  private String accessToken;

  private String refreshToken;

  private long expirationTime;

  public static LoginResponse getInstance(String accessToken,String refreshToken,long expirationTime){
    LoginResponse loginResponse = new LoginResponse();
    loginResponse.setAccessToken(accessToken);
    loginResponse.setRefreshToken(refreshToken);
    loginResponse.setExpirationTime(expirationTime);
    return loginResponse;
  }
}
